package com.zhy.learning.demo.domain;

public abstract class A implements Fly {

    @Override
    public void beforeFly(String name) {
        System.out.println("This is " + name + " beforeFly");
    }


    @Override
    public void fly(String name) {
        System.out.println("This is A fly, param name is " + name);
        beforeFly("A");
        this.doFly("A");
    }

    public abstract void doFly(String name);

    protected String say() {
        return "saying A";
    }

}
